import allure


def dynamic_title(caseinfo):
    allure.dynamic.parameter("caseinfo","")
    if caseinfo.get("feature_name",None) is not None:
        allure.dynamic.feature(caseinfo["feature_name"])
    if caseinfo.get("case_name",None) is not None:
        allure.dynamic.title(caseinfo["case_name"])